﻿using System;
using System.Timers;

namespace Missbot.Core.Scheduler
{
    public class SchedulerTimer : Timer
    {
        public string Id { get; } = Guid.NewGuid().ToString();
        public Action<SchedulerTimer> CallBack { get; init; }
        public object Data { get; set; }
        public bool IsRepeat { get; init; } = true;
        public IScheduleSpan Span { get; init; }
    }
}